#platform
PLATFORM:=am335x-evm

#defconfig
DEFCONFIG:=tisdk_am335x-evm_defconfig

#Architecture
ARCH:=armv7-a

#u-boot machine
#UBOOT_MACHINE:=am335x_evm_config
UBOOT_MACHINE:=am335x_topband_config

PROJECT_DIR=$(shell pwd)/..

#root of the target file system for installing applications
DESTDIR=$(PROJECT_DIR)/rootfs

INSTALL_MOD_STRIP=1

#Cross compiler prefix
export CROSS_COMPILE=$(PROJECT_DIR)/cross_compile/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-

#Default CC value to be used when cross compiling.  This is so that the
#GNU Make default of "cc" is not used to point to the host compiler
export CC=$(CROSS_COMPILE)gcc

#Location of environment-setup file
export ENV_SETUP=$(LINUX_DEVKIT_PATH)/environment-setup

#The directory that points to the SDK kernel &uboot source tree
LINUXKERNEL_DIR=$(PROJECT_DIR)/kernel
LINUXUBOOT_DIR=$(PROJECT_DIR)/boot
#the directory that save build output files in a separete 
KERNEL_KBUILD_OUTPUT_DIR=$(PROJECT_DIR)/output/kernel
UBOOT_KBUILD_OUTPUT_DIR=$(PROJECT_DIR)/output/uboot

CFLAGS= -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard

LOADADDR=0x80008000
MAKE_JOBS=2
